package com.nms.service;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.nms.model.News;
import com.nms.model.pojo.PageParam;

public interface NewsService {

	List<News> findAll();

	List<News> findByPage(PageParam pageParam);

	List<News> findByKeyword(String keyword, PageParam pageParam);

	List<News> findByDate(Date date, PageParam pageParam);

	List<News> findByType(Integer type, PageParam pageParam);
	
	List<News> findHomepageNews();

	News findById(String id);

	boolean deleteById(String id);

	boolean update(News news);

	Serializable add(News news);
}
